/**
 * @author : WXY
 * @program : LeetCode
 * @className ：Num172_trailingZeroes
 * @create : 2022/11/27:11:13
 * @info : 172. 阶乘后的零
 **/
public class Num172_trailingZeroes {
    public static int trailingZeroes(int n) {
        int ans = 0;
        while (n != 0) {
            ans += n / 5;
            n = n / 5;
        }
        return ans;
    }

    public static void main(String[] args) {
        int i = trailingZeroes(130);
        System.out.println(i);
    }
}
